package com.itcoon.transform4j.demo.web.vo;

import com.itcoon.transform.base.annotation.AssembleModel;
import com.itcoon.transform.base.annotation.AssembleModelProperty;
import com.itcoon.transform4j.demo.domain.Student;
import lombok.Data;

import java.io.Serializable;

@Data
@AssembleModel(from = Student.class)
public class StudentVCO implements Serializable {

    @AssembleModelProperty(mapValue = "sid")
    private Long id;

    @AssembleModelProperty
    private String name;

    private Integer age;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
